package com.qys.livesMall.app.user.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户好友
 * </p>
 *
 * @author
 * @since 2023-06-08
 */
@Getter
@Setter
@TableName("h2_app_user_friend")
@Schema(name = "AppUserFriend", description = "用户好友")
public class AppUserFriend implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "用户id")
    private Long userId;

    @Schema(description = "好友id")
    private Long friendId;

    @Schema(description = "是否互相关注")
    private Byte status;

    @Schema(description = "关注时间")
    private LocalDateTime concernTime;

    @Schema(description = "朋友头像")
    private String friendAvatar;

    @Schema(description = "好友昵称")
    private String userName;
}
